package cn.bdqn.or.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import cn.bdqn.or.pojo.Brand;
import java.util.List;
import cn.bdqn.or.dao.BrandMapper;

@Service
public class BrandService {

	@Resource
	private BrandMapper brandMapper;


	public int deleteByPrimaryKey(Integer brandid) {
		return brandMapper.deleteByPrimaryKey(brandid);
	}


	public int insert(Brand record) {
		return brandMapper.insert(record);
	}


	public int updateByPrimaryKey(Brand record) {
		return brandMapper.updateByPrimaryKey(record);
	}


	public List<Brand> queryAll() {
		return brandMapper.queryAll();
	}


	public List<Brand> selectByBrandName(String brandName) {
		return brandMapper.selectByBrandName(brandName);
	}
}

